package com.zzy.demo.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
 
@Entity
@Table(name = "t_file_lite")
@Data
@DynamicUpdate(value = true)
@DynamicInsert(value = true)
public class FileLite {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    private String fileName;
 
    private String fileType;
 
    @Lob
    private byte[] data;
 
}